﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microhard.WeixinMP.Interfaces;
using Microsoft.Practices.Unity;
using Microhard.Permission.Interface;
using Microhard.WeixinMP.Models;
using Microhard.WebUI.Models;
using Telerik.Web.Mvc;

namespace Microhard.FMCG.WebUI.Areas.WX.Controllers
{
    public class CMPUserController : MicroHardBaseController<WXMPUserModel>
    {
        private IWXMPUser _op = null;

        [Dependency]
        public IWXMPUser Dic
        {
            set
            {
                base._repository = value;
                this._op = value;
            }
            get
            {
                return this._op;
            }
        }


        /// <summary>
        /// 微信用户选择窗体使用的查询
        /// </summary>
        /// <param name="aowModel"></param>
        /// <returns></returns>
        public ActionResult WPUserSelect(AttributeOfWindow aowModel)
        {
            var rtn = _op.Query(null);
            aowModel.Data = new GridModel()
            {
                Data = rtn,
            };
            return View(aowModel);
        }

    }
}
